# Convert masks in .npy format in a directory into image format. Useful for loading into cellpose GUI
# for further mask labelling.

import img_util.util


dropbox_basedir = 'C:/Users/timhc/Dropbox/Work/Kang Lab/Exp/2021-02-20 D2GFT1-8 LDR decay IHC Fos pS6/'
npy_dir = dropbox_basedir + 'mask_to_img/'
save_dir = npy_dir + 'saved_img/'
img_ext = '.png'

img_util.util.mask_npy_to_img(npy_dir, save_dir, img_ext)
